package thread;
class  MyThread extends Thread{
    public MyThread(String name) {
        super(name);
    }
    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println(this.getName()+i+"运行");
        }
    }
}
public class ThreadTest {
    public static void main(String[] args) throws InterruptedException {
        System.out.println("11");
        MyThread thread = new MyThread("first");
        thread.start();
        thread.join(1);
        MyThread thread1 = new MyThread("second");
        thread1.start();

        System.out.println(thread.getPriority());
    }
}
